﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Interview_Prov.Login" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph_content" runat="server">
    <asp:Table ID="Table1" runat="server" CellPadding="0" CellSpacing="0" CssClass="login_table"
        HorizontalAlign="Center">
        <asp:TableRow runat="server">
            <asp:TableCell runat="server">Login</asp:TableCell>
            <asp:TableCell runat="server" CssClass="right_cols">
                <asp:TextBox ID="lf_login" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="LoginValidator" ControlToValidate="lf_login" Display="Dynamic"  runat="server" ErrorMessage="Login is required"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="LoginValidator1" ControlToValidate="lf_login" Display="Dynamic" ValidationExpression="^[a-zA-Z0-9_]+$" ErrorMessage="Login must contain a-z A-Z 0-9 and _ symbols" runat="server"></asp:RegularExpressionValidator>               
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow runat="server">
            <asp:TableCell runat="server">Password</asp:TableCell>
            <asp:TableCell runat="server" CssClass="right_cols">
                <asp:TextBox ID="lf_password" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="PasswordValidator" Display="Dynamic" ControlToValidate="lf_password" runat="server" ErrorMessage="Password is reqired"></asp:RequiredFieldValidator>              
            </asp:TableCell>
        </asp:TableRow>
    </asp:Table>
    <asp:Button ID="lf_submit" runat="server" Text="Login" CssClass="login_button"
        onclick="lf_submit_Click" />
</asp:Content>
